package kr.hkit.androidcomplete01.chapter11;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.os.Bundle;
import android.text.InputFilter;
import android.widget.EditText;

public class TextLimitEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.textlimit);
		
		EditText LimitEdit = (EditText)findViewById(R.id.limit);
		InputFilter[] arr = {new InputFilter.LengthFilter(3)};		
		LimitEdit.setFilters(arr);
		
	}
}
